<?php
/**
 * Created by PhpStorm.
 * Author: QinShuai
 * Email: qinshuai0423@qq.com
 * Date: 2021/6/11
 */
?>
<el-header>
    <span class="el-hand" v-if="isCollapse === false" @click="hideAside"><i class="el-icon-s-fold"></i> 隐藏菜单 </span>

    <span class="el-hand" v-if="isCollapse === true" @click="showAside"><i class="el-icon-s-unfold" ></i> 展开菜单</span>

    <span class="el-hand"><i class="el-icon-s-grid"></i> 控制台 </span>

    <el-dropdown>
        <span><i class="el-icon-user-solid"></i> <?= \backend\models\AdminUser::findUserName()['username']?></span>
        <template #dropdown>
            <el-dropdown-menu>
                <el-dropdown-item>个人资料</el-dropdown-item>
                <el-dropdown-item @click.native="logout">退出登陆</el-dropdown-item>
            </el-dropdown-menu>
        </template>
    </el-dropdown>
    <span class="el-right el-hand"><i class="el-icon-s-home"></i> 前往主页 </span>
</el-header>

